﻿//============================================================
// Project: DigitalFactory
// Author: Administrator@DESKTOP-IE3FPT7
// Datetime: 2021-03-23 18:05:49
// Description: TODO >> This is a script Description.
//============================================================

using UnityEngine;

namespace NodePathFinder.Script
{
    public class NodeTypeMapProxy: MonoBehaviour
    {
        private Graph _graph;

        public void Init(int nodeCount)
        {
            _graph = new Graph(nodeCount);
        }

        public int[] PathFind(int startNode, int endNode) 
        {
            int[] path = _graph.DijkStraSearch(startNode, endNode);
            Debug.Log(path);
            return path;
        }

        public void AddEdge(Edge edge) 
        {
            _graph.AddEdge(edge);
        }
    }
}
